﻿//加载编辑器
var adminparams = "&AdminName=" + $.cookie("AdminName") + "&AdminPwd=" + $.cookie("AdminPwd"); //注意：批量上传调用flash无法获取cookie，因此用GET方式传递账号密码
var options = {
    uploadJson: '../../tools/admin_editor.ashx?action=EditorFile&IsWater=0' + adminparams,
    fileManagerJson: '../../tools/admin_editor.ashx?action=ManagerFile' + adminparams,
    width: '98%',
    height: '350px',
    allowFileManager: true
};
KindEditor.ready(function (K) {
    K.create('#txtContent', options);
    K.create('.editor', options);
});
$(function () {
    var editor3 = KindEditor.create('.editor-mini', {
        width: '98%',
        height: '250px',
        resizeType: 1,
        uploadJson: '../../tools/admin_editor.ashx?action=EditorFile&IsWater=0' + adminparams,
        fileManagerJson: '../../tools/upload_ajax.ashx?action=ManagerFile' + adminparams,
        items: [
				'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'emoticons', 'image', 'link']
    });
});

